score = eval(input("请输入成绩分数："))
if score >= 60:
    print("成绩已及格")
score = eval(input('请输入成绩分数'))
if score < 60:
    print("成绩不合格")
    if 60 <= score < 80:
        print("成绩一般")
        if 80 <= score <= 90:
            print("成绩良好")
            if 90 < score <= 100:
                print("成绩优秀")
score = eval(input('请输入成绩分数'))
if 60 <= score:
    print(" 成绩已合格")
    if 90 < score <= 100:
        print("成绩优秀")# 逻辑运算符使用所示:
print(True and False)
print(True and True)
print(True or False)
print(not False)
# 成员运算符使用所示:
str1 = 'hello'
print('h' in str1)
print('a' in str1)
print('c' not in str1)
print('o' not in str1)# print('a' in str1)
# print('c' not in str1)
# print('o' not in str1)
# score = eval(input("请输入一个年份:"))
# if score % 4 == 0 and score % 100 != 0 or score % 400 == 0:
#     print("是闰年")
# else:
#     print("不是闰年")
# # 逻辑运算符使用所示:
# print(True and False)
# print(True and True)
# print(True or False)
# print(not False)
# # 成员运算符使用所示:
# str1 = 'hello'
# print('h' in str1)
# print('a' in str1)
# print('c' not in str1)
# print('o' not in str1)
#
# # 逻辑运算符使用所示:
# print(True and False)
# print(True and True)
# print(True or False)
# print(not False)
#
# # 成员运算符使用所示:
# str1 = 'hello'
# print('h' in str1)
# print('a' in str1)
# print('c' not in str1)
# print('o' not in str1)# 逻辑运算符使用所示:
# print(True and False)
# print(True and True)
# print(True or False)
# print(not False)
#
# # 成员运算符使用所示:
# str1 = 'hello'
# print('h' in str1)
# print('a' in str1)
# print('c' not in str1)
# print('o' not in str1)
#
# score = eval(input("请输入成绩分数："))
# if score >= 60:
#     print("成绩已及格")

# a = 1
# while a <= 100:
#     print('今天是第', a)
#     a = a + 1
# n = 1
# sum = 0
# while n <= 100:
#     sum = sum + n
#     n = n + 1
#     # print(sum)
#     print(sum)
# for i in 'python':
#     print(i)

for i in range(8):
    print(i)
    #print(8)
    # # while 中使用break跳出循环
    # i = 0
    # while i <= 5:
    #     i += 1  # i=i+1
    #     print('星期为:', i)
    #     if i == 3:
    #         break
    #
    # i = 0
    # while i <= 5:
    #     if i == 3:
    #         break
    #         print('星期为：', i)
    #         i += 1

    # for i in range(1, 6):
    #     print("星期", i)
    #     if i == 3:
    #         break
    # for i in range(1, 6):
    #     if i == 3:
    #         break
    #         print("星期", i)

    # while循环中使用continue语句


